import { Application } from "mydog";
import gateManager from "../../../app/gateManager";

declare global {
  interface Rpc { gate: { main: Remote } }
}

export default class Remote {
  private app: Application;
  constructor(app: Application) {
    this.app = app;
  }

  public tokenSign(uid: number) {
    return gateManager.tokenSign(uid);
  }

  public async tokenVerify(uid: number, token: string) {
    return await gateManager.tokenVerify(uid, token);
  }
}
